package com.bestdreamer.threadbasic;

public class Run {

    public static void main(String[] args) {
        try{
            MyThreadInterrupt thread = new MyThreadInterrupt();
            thread.start();
            Thread.sleep(2000);
            thread.interrupt();
        }catch (InterruptedException e){
            System.out.println("main catch");
            e.printStackTrace();
        }
    }
}
